package org.jeecg.modules.param.member.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.jeecg.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: IC卡管理
 * @Author: 月月鸟
 * @Date:   2021-05-25
 * @Version: V1.0
 */
@Data
@TableName("bike_member_user_card")
@ApiModel(value="bike_member_user_card对象", description="IC卡管理")
public class BikeMemberUserCard implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**用户编码*/
    @ApiModelProperty(value = "用户编码")
    private java.lang.String userId;

	/**用户类型(1会员用户2管理用户)*/
	@Excel(name = "用户类型(1会员用户2管理用户)", width = 15)
    @Dict(dicCode = "member_type")
    @ApiModelProperty(value = "用户类型(1会员用户2管理用户)")
    private java.lang.String userType;
	/**会员卡类型*/
	@Excel(name = "会员卡类型", width = 15)
    @Dict(dicCode = "card_type")
    @ApiModelProperty(value = "会员卡类型 1.会员 2 管理 3 运维")
    private java.lang.String cardType;
	/**会员卡号*/
	@Excel(name = "会员卡号", width = 15)
    @ApiModelProperty(value = "会员卡号")
    private java.lang.String cardCode;
    /**卡No号*/
    @Excel(name = "卡No号", width = 15)
    @ApiModelProperty(value = "卡No号")
    private java.lang.String cardNumber;
    /**卡费*/
    @Excel(name = "押金", width = 15)
    @ApiModelProperty(value = "押金")
    private BigDecimal cardFee;
	/**发卡时间*/
	@Excel(name = "发卡时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发卡时间")
    private java.util.Date cardTime;
	/**挂失时间*/
	@Excel(name = "挂失时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "挂失时间")
    private java.util.Date cardLossTime;
	/**注销时间*/
	@Excel(name = "注销时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "注销时间")
    private java.util.Date cardCancelTime;
	/**卡状态(1正常2挂失3注销4无卡)*/
	@Excel(name = "卡状态(1正常2挂失3注销4无卡)", width = 15)
    @Dict(dicCode = "card_status")
    @ApiModelProperty(value = "卡状态(1正常2挂失3注销4无卡)")
    private java.lang.String cardStatus;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String memo;

    @ApiModelProperty(value = "充值金额")
    @TableField(exist = false)
    private BigDecimal pay;
    @ApiModelProperty(value = "改卡费")
    @TableField(exist = false)
    private BigDecimal changeCardFee;
    @ApiModelProperty(value = "新卡信息")
    @TableField(exist = false)
    private BikeMemberUserCard newCard;
    @ApiModelProperty(value = "方法类型")
    @TableField(exist = false)
    private String methodType;

    @ApiModelProperty(value = "卡费")
    @TableField(exist = false)
    private BigDecimal deposit;
    /**临时用户id*/
    @ApiModelProperty(value = "临时用户id")
    @TableField(exist = false)
    private java.lang.String userIdd;
}
